package com.cloudalibabaopenfeign8087.service;

import com.cloudalibabacomment8001.entity.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description: TODO
 * @Author zx
 * @Date 2024/11/26 20:29
 * @Version 1.0
 */
@Service
// 表示远程调用服务的名称
@FeignClient("nacos-provider")
public interface OpenFeignService {

    @GetMapping("info/{id}")
    public JsonResult<String> msbSql(@PathVariable("id") Long id);

    @GetMapping("timeOut/{id}")
    public JsonResult<String> timeOut(@PathVariable("id") Long id);


}
